package main

import "fmt"

func test1() {
    fmt.Println("test1")
}

func test2() {
    fmt.Println("test2")
}

func main() {
    defer test1()
    fmt.Println("test3")
    defer test2()
}

/*
 
mod@archlinux 3关键字 $ go run 1defer.go 
test3
test2
test1
 
 */
